package cms;

import cms.utils.CreateDirUtils;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 注解@SpringBootApplication指定项目为springboot，由此类当作程序入口,自动装配 web 依赖的环境;
 */
@EnableScheduling // 开启定时
@SpringBootApplication(exclude = {FreeMarkerAutoConfiguration.class}, scanBasePackages = {"cms.bean", "cms.service", "cms.web"})
//取消freemarker自动配置
//@ServletComponentScan("cms.web.filter")
public class Application extends SpringBootServletInitializer {

    // 在main方法中启动一个应用，即：这个应用的入口  
    public static void main(String[] args) {
        CreateDirUtils.createDirectoriesAndEntityFile(args);
    }

}  
